const { Model, DataTypes } = require("sequelize");
const { datasource } = require("../index.cjs");
/**
 * @type {Record<any, import('sequelize').DataType | import('sequelize').ModelAttributeColumnOptions<Task>>}
 */
const attrs = {
	id: {
		primaryKey: true,
		autoIncrement: true,
		type: DataTypes.INTEGER
	},
	key: {
		unique: true,
		type: DataTypes.STRING,
		allowNull: false
	},
	value: {
		type: DataTypes.STRING
	}
}

class Setting extends Model {
}

Setting.init(attrs, { sequelize: datasource, modelName: 'Setting' })

module.exports = { Setting }
